package executorTest;

import org.junit.Test;

public class ExecutorTest01 {

    private static final int COUNT_BITS = Integer.SIZE - 3;
    private static final int CAPACITY   = (1 << COUNT_BITS) - 1;
    @Test
    public void workerCountOfTest(){
        System.out.println(COUNT_BITS);
        System.out.println(CAPACITY);
        System.out.println((int)Math.pow(2,29)-1);

        int c = 0;
        System.out.println(c & CAPACITY);
        System.out.println(1 & CAPACITY);
        System.out.println(c & ~CAPACITY);
        System.out.println(1 & ~CAPACITY);
    }
}
